using CMS.Domain.Entity;
using CMS.Infrastructrue.Persistence.Configuration.Base;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.Infrastructrue.Persistence.Configuration
{
    public class BlogAllTextConfiguration :BaseEntityConfiguration<BlogAllText> 
    {  public override void Configure(EntityTypeBuilder<BlogAllText> builder)
        {
            base.Configure(builder);

            builder.ToTable("blog_all_text");

            builder.Property(x=>x.BlogContent ).HasColumnName("blog_content ").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x=>x.BlogId ).HasColumnName("blog_id ").HasColumnOrder(2);

        } }
}